package com.spzx.pay;

import com.spzx.common.anno.EnableUserTokenFeignInterceptor;
import com.spzx.common.anno.EnableUserWebMvcConfiguration;
import com.spzx.pay.utils.AlipayProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Project: spzx-parent
 * Package: com.spzx.pay
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/5/5 下午5:17
 */
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.spzx.feign.order", "com.spzx.feign.product"})
@EnableConfigurationProperties(value = {AlipayProperties.class})    //引入yml配置类
@EnableUserWebMvcConfiguration
@EnableUserTokenFeignInterceptor
public class PayApplication {
    public static void main(String[] args) {
        SpringApplication.run(PayApplication.class, args);
    }
}
